package com.ssyu.examination.questionbank.entity;

import java.util.Date;

public class QuestionQesEntity {
	private int id;
	private String question;
	private String attachment;
	private int questionType;
	private int courseId;
	private String answerA;
	private String answerB;
	private String answerC;
	private String answerD;
	private String answer;
	private int difficulty;
	private String analysis;
	private String keywords;
	private int operateUserId;
	private Date opreateTime;
	private int state;
	private String memo;

	
	private String course_name;
	public QuestionQesEntity() {
		super();
	}

	public QuestionQesEntity(int id, String question, String attachment,
			int questionType, int courseId, String answerA, String answerB,
			String answerC, String answerD, String answer, int difficulty,
			String analysis, String keywords, int operateUserId,
			Date opreateTime, int state, String memo, String course_name) {
		super();
		this.id = id;
		this.question = question;
		this.attachment = attachment;
		this.questionType = questionType;
		this.courseId = courseId;
		this.answerA = answerA;
		this.answerB = answerB;
		this.answerC = answerC;
		this.answerD = answerD;
		this.answer = answer;
		this.difficulty = difficulty;
		this.analysis = analysis;
		this.keywords = keywords;
		this.operateUserId = operateUserId;
		this.opreateTime = opreateTime;
		this.state = state;
		this.memo = memo;
		this.setCourse_name(course_name);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getAttachment() {
		return attachment;
	}

	public void setAttachment(String attachment) {
		this.attachment = attachment;
	}

	public int getQuestionType() {
		return questionType;
	}

	public String getQuestionTypeStr() {
		if (questionType == 1) {
			return "单选";
		} else if (questionType == 2) {
			return "多选";
		} else {
			return "判断";
		}
	}

	public int getCourseId() {
		return courseId;
	}

	public void setCourseId(int courseId) {
		this.courseId = courseId;
	}

	public String getAnswerA() {
		return answerA;
	}

	public void setAnswerA(String answerA) {
		this.answerA = answerA;
	}

	public String getAnswerB() {
		return answerB;
	}

	public void setAnswerB(String answerB) {
		this.answerB = answerB;
	}

	public String getAnswerC() {
		return answerC;
	}

	public void setAnswerC(String answerC) {
		this.answerC = answerC;
	}

	public String getAnswerD() {
		return answerD;
	}

	public void setAnswerD(String answerD) {
		this.answerD = answerD;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}
	
	public int getDifficulty() {
		return difficulty;
	}

	public String getDifficultyStr() {
		if (difficulty == 1) {
			return "低";
		} else if (difficulty == 2) {
			return "中";
		} else if (difficulty == 3) {
			return "较高";
		} else if (difficulty == 4) {
			return "高";
		} else{
			return "没有该难度";
		}
	}

	public String getAnalysis() {
		return analysis;
	}

	public void setAnalysis(String analysis) {
		this.analysis = analysis;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public int getOperateUserId() {
		return operateUserId;
	}

	public void setOperateUserId(int operateUserId) {
		this.operateUserId = operateUserId;
	}

	public Date getOpreateTime() {
		return opreateTime;
	}

	public void setOpreateTime(Date opreateTime) {
		this.opreateTime = opreateTime;
	}
	
	public int getState() {
		return state;
	}
	
	public String getStateStr() {
		if (state == 1) {
			return "启用";
		} else if (state == 2) {
			return "禁用";
		} else {
			return "没有该状态";
		}
	}

	public void setQuestionType(int questionType) {
		this.questionType = questionType;
	}

	public void setDifficulty(int difficulty) {
		this.difficulty = difficulty;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getCourse_name() {
		return course_name;
	}

	public void setCourse_name(String course_name) {
		this.course_name = course_name;
	}

}
